# If a list of network cards and network adaptors could not be parsed
# from the Printers resource file in CreateNetDeviceList then build a default
# list that lists the HP cards.
#
BuildDefaultList()
{
DEV_LIST="Network Card Installed in Printer|HP JetDirect EX External Interface|HP JetDirect EX Plus3 Port 1|HP JetDirect EX Plus3 Port 2|HP JetDirect EX Plus3 Port 3"
OUT_PORTS="-1|9100|9100|9101|9102"
IN_PORTS="-1|9100|9100|9101|9102"
NUM_DEVICES="5"
}
#
# Displays a list of network printers
#
ShowNetList()
{
echo "Supported Network Printer Types:"
echo $PTYPE_LIST | $AWK -F\| 'BEGIN { RS = "|" }
{
printf("\t%2d. %s\n", NR, $1)
}' | $OUT_FILT
}
ShowNetDeviceList()
{
echo "Supported Network Interface Types:"
echo $DEV_LIST | $AWK -F\| 'BEGIN { RS = "|" }
{
printf("\t%2d. %s\n", NR, $1)
}' | $OUT_FILT
}
#
# Extracts the model file name from a string similar to: